Integrand size = 21, antiderivative size = 315 \[ \int \tan ^3(e+f x) (1+\tan (e+f x))^{3/2} \, dx=-\frac {\sqrt {1+\sqrt {2}} \arctan \left (\frac {\sqrt {2 \left (1+\sqrt {2}\right )}-2 \sqrt {1+\tan (e+f x)}}{\sqrt {2 \left (-1+\sqrt {2}\right )}}\right )}{f}+\frac {\sqrt {1+\sqrt {2}} \arctan \left (\frac {\sqrt {2 \left (1+\sqrt {2}\right )}+2 \sqrt {1+\tan (e+f x)}}{\sqrt {2 \left (-1+\sqrt {2}\right )}}\right )}{f}-\frac {\log \left (1+\sqrt {2}+\tan (e+f x)-\sqrt {2 \left (1+\sqrt {2}\right )} \sqrt {1+\tan (e+f x)}\right )}{2 \sqrt {1+\sqrt {2}} f}+\frac {\log \left (1+\sqrt {2}+\tan (e+f x)+\sqrt {2 \left (1+\sqrt {2}\right )} \sqrt {1+\tan (e+f x)}\right )}{2 \sqrt {1+\sqrt {2}} f}-\frac {2 \sqrt {1+\tan (e+f x)}}{f}-\frac {2 (1+\tan (e+f x))^{3/2}}{3 f}-\frac {4 (1+\tan (e+f x))^{5/2}}{35 f}+\frac {2 \tan (e+f x) (1+\tan (e+f x))^{5/2}}{7 f} \]
[Out]
Time = 0.42 (sec) , antiderivative size = 315, normalized size of antiderivative = 1.00, number of steps used = 17, number of rules used = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.524, Rules used = {3647, 3711, 12, 3609, 3566, 722, 1108, 648, 632, 210, 642} \[ \int \tan ^3(e+f x) (1+\tan (e+f x))^{3/2} \, dx=-\frac {\sqrt {1+\sqrt {2}} \arctan \left (\frac {\sqrt {2 \left (1+\sqrt {2}\right )}-2 \sqrt {\tan (e+f x)+1}}{\sqrt {2 \left (\sqrt {2}-1\right )}}\right )}{f}+\frac {\sqrt {1+\sqrt {2}} \arctan \left (\frac {2 \sqrt {\tan (e+f x)+1}+\sqrt {2 \left (1+\sqrt {2}\right )}}{\sqrt {2 \left (\sqrt {2}-1\right )}}\right )}{f}+\frac {2 \tan (e+f x) (\tan (e+f x)+1)^{5/2}}{7 f}-\frac {4 (\tan (e+f x)+1)^{5/2}}{35 f}-\frac {2 (\tan (e+f x)+1)^{3/2}}{3 f}-\frac {2 \sqrt {\tan (e+f x)+1}}{f}-\frac {\log \left (\tan (e+f x)-\sqrt {2 \left (1+\sqrt {2}\right )} \sqrt {\tan (e+f x)+1}+\sqrt {2}+1\right )}{2 \sqrt {1+\sqrt {2}} f}+\frac {\log \left (\tan (e+f x)+\sqrt {2 \left (1+\sqrt {2}\right )} \sqrt {\tan (e+f x)+1}+\sqrt {2}+1\right )}{2 \sqrt {1+\sqrt {2}} f} \]
[In]
[Out]
Rule 12
Rule 210
Rule 632
Rule 642
Rule 648
Rule 722
Rule 1108
Rule 3566
Rule 3609
Rule 3647
Rule 3711
Rubi steps \begin{align*} \text {integral}& = \frac {2 \tan (e+f x) (1+\tan (e+f x))^{5/2}}{7 f}+\frac {2}{7} \int (1+\tan (e+f x))^{3/2} \left (-1-\frac {7}{2} \tan (e+f x)-\tan ^2(e+f x)\right ) \, dx \\ & = -\frac {4 (1+\tan (e+f x))^{5/2}}{35 f}+\frac {2 \tan (e+f x) (1+\tan (e+f x))^{5/2}}{7 f}+\frac {2}{7} \int -\frac {7}{2} \tan (e+f x) (1+\tan (e+f x))^{3/2} \, dx \\ & = -\frac {4 (1+\tan (e+f x))^{5/2}}{35 f}+\frac {2 \tan (e+f x) (1+\tan (e+f x))^{5/2}}{7 f}-\int \tan (e+f x) (1+\tan (e+f x))^{3/2} \, dx \\ & = -\frac {2 (1+\tan (e+f x))^{3/2}}{3 f}-\frac {4 (1+\tan (e+f x))^{5/2}}{35 f}+\frac {2 \tan (e+f x) (1+\tan (e+f x))^{5/2}}{7 f}-\int (-1+\tan (e+f x)) \sqrt {1+\tan (e+f x)} \, dx \\ & = -\frac {2 \sqrt {1+\tan (e+f x)}}{f}-\frac {2 (1+\tan (e+f x))^{3/2}}{3 f}-\frac {4 (1+\tan (e+f x))^{5/2}}{35 f}+\frac {2 \tan (e+f x) (1+\tan (e+f x))^{5/2}}{7 f}-\int -\frac {2}{\sqrt {1+\tan (e+f x)}} \, dx \\ & = -\frac {2 \sqrt {1+\tan (e+f x)}}{f}-\frac {2 (1+\tan (e+f x))^{3/2}}{3 f}-\frac {4 (1+\tan (e+f x))^{5/2}}{35 f}+\frac {2 \tan (e+f x) (1+\tan (e+f x))^{5/2}}{7 f}+2 \int \frac {1}{\sqrt {1+\tan (e+f x)}} \, dx \\ & = -\frac {2 \sqrt {1+\tan (e+f x)}}{f}-\frac {2 (1+\tan (e+f x))^{3/2}}{3 f}-\frac {4 (1+\tan (e+f x))^{5/2}}{35 f}+\frac {2 \tan (e+f x) (1+\tan (e+f x))^{5/2}}{7 f}+\frac {2 \text {Subst}\left (\int \frac {1}{\sqrt {1+x} \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{f} \\ & = -\frac {2 \sqrt {1+\tan (e+f x)}}{f}-\frac {2 (1+\tan (e+f x))^{3/2}}{3 f}-\frac {4 (1+\tan (e+f x))^{5/2}}{35 f}+\frac {2 \tan (e+f x) (1+\tan (e+f x))^{5/2}}{7 f}+\frac {4 \text {Subst}\left (\int \frac {1}{2-2 x^2+x^4} \, dx,x,\sqrt {1+\tan (e+f x)}\right )}{f} \\ & = -\frac {2 \sqrt {1+\tan (e+f x)}}{f}-\frac {2 (1+\tan (e+f x))^{3/2}}{3 f}-\frac {4 (1+\tan (e+f x))^{5/2}}{35 f}+\frac {2 \tan (e+f x) (1+\tan (e+f x))^{5/2}}{7 f}+\frac {\text {Subst}\left (\int \frac {\sqrt {2 \left (1+\sqrt {2}\right )}-x}{\sqrt {2}-\sqrt {2 \left (1+\sqrt {2}\right )} x+x^2} \, dx,x,\sqrt {1+\tan (e+f x)}\right )}{\sqrt {1+\sqrt {2}} f}+\frac {\text {Subst}\left (\int \frac {\sqrt {2 \left (1+\sqrt {2}\right )}+x}{\sqrt {2}+\sqrt {2 \left (1+\sqrt {2}\right )} x+x^2} \, dx,x,\sqrt {1+\tan (e+f x)}\right )}{\sqrt {1+\sqrt {2}} f} \\ & = -\frac {2 \sqrt {1+\tan (e+f x)}}{f}-\frac {2 (1+\tan (e+f x))^{3/2}}{3 f}-\frac {4 (1+\tan (e+f x))^{5/2}}{35 f}+\frac {2 \tan (e+f x) (1+\tan (e+f x))^{5/2}}{7 f}+\frac {\text {Subst}\left (\int \frac {1}{\sqrt {2}-\sqrt {2 \left (1+\sqrt {2}\right )} x+x^2} \, dx,x,\sqrt {1+\tan (e+f x)}\right )}{\sqrt {2} f}+\frac {\text {Subst}\left (\int \frac {1}{\sqrt {2}+\sqrt {2 \left (1+\sqrt {2}\right )} x+x^2} \, dx,x,\sqrt {1+\tan (e+f x)}\right )}{\sqrt {2} f}-\frac {\text {Subst}\left (\int \frac {-\sqrt {2 \left (1+\sqrt {2}\right )}+2 x}{\sqrt {2}-\sqrt {2 \left (1+\sqrt {2}\right )} x+x^2} \, dx,x,\sqrt {1+\tan (e+f x)}\right )}{2 \sqrt {1+\sqrt {2}} f}+\frac {\text {Subst}\left (\int \frac {\sqrt {2 \left (1+\sqrt {2}\right )}+2 x}{\sqrt {2}+\sqrt {2 \left (1+\sqrt {2}\right )} x+x^2} \, dx,x,\sqrt {1+\tan (e+f x)}\right )}{2 \sqrt {1+\sqrt {2}} f} \\ & = -\frac {\log \left (1+\sqrt {2}+\tan (e+f x)-\sqrt {2 \left (1+\sqrt {2}\right )} \sqrt {1+\tan (e+f x)}\right )}{2 \sqrt {1+\sqrt {2}} f}+\frac {\log \left (1+\sqrt {2}+\tan (e+f x)+\sqrt {2 \left (1+\sqrt {2}\right )} \sqrt {1+\tan (e+f x)}\right )}{2 \sqrt {1+\sqrt {2}} f}-\frac {2 \sqrt {1+\tan (e+f x)}}{f}-\frac {2 (1+\tan (e+f x))^{3/2}}{3 f}-\frac {4 (1+\tan (e+f x))^{5/2}}{35 f}+\frac {2 \tan (e+f x) (1+\tan (e+f x))^{5/2}}{7 f}-\frac {\sqrt {2} \text {Subst}\left (\int \frac {1}{2 \left (1-\sqrt {2}\right )-x^2} \, dx,x,-\sqrt {2 \left (1+\sqrt {2}\right )}+2 \sqrt {1+\tan (e+f x)}\right )}{f}-\frac {\sqrt {2} \text {Subst}\left (\int \frac {1}{2 \left (1-\sqrt {2}\right )-x^2} \, dx,x,\sqrt {2 \left (1+\sqrt {2}\right )}+2 \sqrt {1+\tan (e+f x)}\right )}{f} \\ & = -\frac {\arctan \left (\frac {\sqrt {2 \left (1+\sqrt {2}\right )}-2 \sqrt {1+\tan (e+f x)}}{\sqrt {2 \left (-1+\sqrt {2}\right )}}\right )}{\sqrt {-1+\sqrt {2}} f}+\frac {\arctan \left (\frac {\sqrt {2 \left (1+\sqrt {2}\right )}+2 \sqrt {1+\tan (e+f x)}}{\sqrt {2 \left (-1+\sqrt {2}\right )}}\right )}{\sqrt {-1+\sqrt {2}} f}-\frac {\log \left (1+\sqrt {2}+\tan (e+f x)-\sqrt {2 \left (1+\sqrt {2}\right )} \sqrt {1+\tan (e+f x)}\right )}{2 \sqrt {1+\sqrt {2}} f}+\frac {\log \left (1+\sqrt {2}+\tan (e+f x)+\sqrt {2 \left (1+\sqrt {2}\right )} \sqrt {1+\tan (e+f x)}\right )}{2 \sqrt {1+\sqrt {2}} f}-\frac {2 \sqrt {1+\tan (e+f x)}}{f}-\frac {2 (1+\tan (e+f x))^{3/2}}{3 f}-\frac {4 (1+\tan (e+f x))^{5/2}}{35 f}+\frac {2 \tan (e+f x) (1+\tan (e+f x))^{5/2}}{7 f} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.66 (sec) , antiderivative size = 112, normalized size of antiderivative = 0.36 \[ \int \tan ^3(e+f x) (1+\tan (e+f x))^{3/2} \, dx=\frac {105 (1-i)^{3/2} \text {arctanh}\left (\frac {\sqrt {1+\tan (e+f x)}}{\sqrt {1-i}}\right )+105 (1+i)^{3/2} \text {arctanh}\left (\frac {\sqrt {1+\tan (e+f x)}}{\sqrt {1+i}}\right )+2 \sqrt {1+\tan (e+f x)} \left (-146-32 \tan (e+f x)+24 \tan ^2(e+f x)+15 \tan ^3(e+f x)\right )}{105 f} \]
[In]
[Out]
Time = 0.49 (sec) , antiderivative size = 354, normalized size of antiderivative = 1.12
method | result | size |
derivativedivides | \(\frac {2 \left (1+\tan \left (f x +e \right )\right )^{\frac {7}{2}}}{7 f}-\frac {2 \left (1+\tan \left (f x +e \right )\right )^{\frac {5}{2}}}{5 f}-\frac {2 \left (1+\tan \left (f x +e \right )\right )^{\frac {3}{2}}}{3 f}-\frac {2 \sqrt {1+\tan \left (f x +e \right )}}{f}-\frac {\sqrt {2+2 \sqrt {2}}\, \sqrt {2}\, \ln \left (1+\sqrt {2}+\sqrt {2+2 \sqrt {2}}\, \sqrt {1+\tan \left (f x +e \right )}+\tan \left (f x +e \right )\right )}{4 f}+\frac {\sqrt {2+2 \sqrt {2}}\, \ln \left (1+\sqrt {2}+\sqrt {2+2 \sqrt {2}}\, \sqrt {1+\tan \left (f x +e \right )}+\tan \left (f x +e \right )\right )}{2 f}+\frac {\arctan \left (\frac {\sqrt {2+2 \sqrt {2}}+2 \sqrt {1+\tan \left (f x +e \right )}}{\sqrt {-2+2 \sqrt {2}}}\right ) \sqrt {2}}{f \sqrt {-2+2 \sqrt {2}}}+\frac {\sqrt {2+2 \sqrt {2}}\, \sqrt {2}\, \ln \left (1+\sqrt {2}-\sqrt {2+2 \sqrt {2}}\, \sqrt {1+\tan \left (f x +e \right )}+\tan \left (f x +e \right )\right )}{4 f}-\frac {\sqrt {2+2 \sqrt {2}}\, \ln \left (1+\sqrt {2}-\sqrt {2+2 \sqrt {2}}\, \sqrt {1+\tan \left (f x +e \right )}+\tan \left (f x +e \right )\right )}{2 f}+\frac {\arctan \left (\frac {2 \sqrt {1+\tan \left (f x +e \right )}-\sqrt {2+2 \sqrt {2}}}{\sqrt {-2+2 \sqrt {2}}}\right ) \sqrt {2}}{f \sqrt {-2+2 \sqrt {2}}}\) | \(354\) |
default | \(\frac {2 \left (1+\tan \left (f x +e \right )\right )^{\frac {7}{2}}}{7 f}-\frac {2 \left (1+\tan \left (f x +e \right )\right )^{\frac {5}{2}}}{5 f}-\frac {2 \left (1+\tan \left (f x +e \right )\right )^{\frac {3}{2}}}{3 f}-\frac {2 \sqrt {1+\tan \left (f x +e \right )}}{f}-\frac {\sqrt {2+2 \sqrt {2}}\, \sqrt {2}\, \ln \left (1+\sqrt {2}+\sqrt {2+2 \sqrt {2}}\, \sqrt {1+\tan \left (f x +e \right )}+\tan \left (f x +e \right )\right )}{4 f}+\frac {\sqrt {2+2 \sqrt {2}}\, \ln \left (1+\sqrt {2}+\sqrt {2+2 \sqrt {2}}\, \sqrt {1+\tan \left (f x +e \right )}+\tan \left (f x +e \right )\right )}{2 f}+\frac {\arctan \left (\frac {\sqrt {2+2 \sqrt {2}}+2 \sqrt {1+\tan \left (f x +e \right )}}{\sqrt {-2+2 \sqrt {2}}}\right ) \sqrt {2}}{f \sqrt {-2+2 \sqrt {2}}}+\frac {\sqrt {2+2 \sqrt {2}}\, \sqrt {2}\, \ln \left (1+\sqrt {2}-\sqrt {2+2 \sqrt {2}}\, \sqrt {1+\tan \left (f x +e \right )}+\tan \left (f x +e \right )\right )}{4 f}-\frac {\sqrt {2+2 \sqrt {2}}\, \ln \left (1+\sqrt {2}-\sqrt {2+2 \sqrt {2}}\, \sqrt {1+\tan \left (f x +e \right )}+\tan \left (f x +e \right )\right )}{2 f}+\frac {\arctan \left (\frac {2 \sqrt {1+\tan \left (f x +e \right )}-\sqrt {2+2 \sqrt {2}}}{\sqrt {-2+2 \sqrt {2}}}\right ) \sqrt {2}}{f \sqrt {-2+2 \sqrt {2}}}\) | \(354\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 358, normalized size of antiderivative = 1.14 \[ \int \tan ^3(e+f x) (1+\tan (e+f x))^{3/2} \, dx=\frac {105 \, \sqrt {2} f \sqrt {-\frac {f^{2} \sqrt {-\frac {1}{f^{4}}} + 1}{f^{2}}} \log \left (\sqrt {2} {\left (f^{3} \sqrt {-\frac {1}{f^{4}}} + f\right )} \sqrt {-\frac {f^{2} \sqrt {-\frac {1}{f^{4}}} + 1}{f^{2}}} + 2 \, \sqrt {\tan \left (f x + e\right ) + 1}\right ) - 105 \, \sqrt {2} f \sqrt {-\frac {f^{2} \sqrt {-\frac {1}{f^{4}}} + 1}{f^{2}}} \log \left (-\sqrt {2} {\left (f^{3} \sqrt {-\frac {1}{f^{4}}} + f\right )} \sqrt {-\frac {f^{2} \sqrt {-\frac {1}{f^{4}}} + 1}{f^{2}}} + 2 \, \sqrt {\tan \left (f x + e\right ) + 1}\right ) - 105 \, \sqrt {2} f \sqrt {\frac {f^{2} \sqrt {-\frac {1}{f^{4}}} - 1}{f^{2}}} \log \left (\sqrt {2} {\left (f^{3} \sqrt {-\frac {1}{f^{4}}} - f\right )} \sqrt {\frac {f^{2} \sqrt {-\frac {1}{f^{4}}} - 1}{f^{2}}} + 2 \, \sqrt {\tan \left (f x + e\right ) + 1}\right ) + 105 \, \sqrt {2} f \sqrt {\frac {f^{2} \sqrt {-\frac {1}{f^{4}}} - 1}{f^{2}}} \log \left (-\sqrt {2} {\left (f^{3} \sqrt {-\frac {1}{f^{4}}} - f\right )} \sqrt {\frac {f^{2} \sqrt {-\frac {1}{f^{4}}} - 1}{f^{2}}} + 2 \, \sqrt {\tan \left (f x + e\right ) + 1}\right ) + 4 \, {\left (15 \, \tan \left (f x + e\right )^{3} + 24 \, \tan \left (f x + e\right )^{2} - 32 \, \tan \left (f x + e\right ) - 146\right )} \sqrt {\tan \left (f x + e\right ) + 1}}{210 \, f} \]
[In]
[Out]
\[ \int \tan ^3(e+f x) (1+\tan (e+f x))^{3/2} \, dx=\int \left (\tan {\left (e + f x \right )} + 1\right )^{\frac {3}{2}} \tan ^{3}{\left (e + f x \right )}\, dx \]
[In]
[Out]
\[ \int \tan ^3(e+f x) (1+\tan (e+f x))^{3/2} \, dx=\int { {\left (\tan \left (f x + e\right ) + 1\right )}^{\frac {3}{2}} \tan \left (f x + e\right )^{3} \,d x } \]
[In]
[Out]
Timed out. \[ \int \tan ^3(e+f x) (1+\tan (e+f x))^{3/2} \, dx=\text {Timed out} \]
[In]
[Out]
Time = 5.90 (sec) , antiderivative size = 129, normalized size of antiderivative = 0.41 \[ \int \tan ^3(e+f x) (1+\tan (e+f x))^{3/2} \, dx=\frac {2\,{\left (\mathrm {tan}\left (e+f\,x\right )+1\right )}^{7/2}}{7\,f}-\frac {2\,{\left (\mathrm {tan}\left (e+f\,x\right )+1\right )}^{3/2}}{3\,f}-\frac {2\,{\left (\mathrm {tan}\left (e+f\,x\right )+1\right )}^{5/2}}{5\,f}-\frac {2\,\sqrt {\mathrm {tan}\left (e+f\,x\right )+1}}{f}+\mathrm {atan}\left (f\,\sqrt {\frac {-\frac {1}{2}-\frac {1}{2}{}\mathrm {i}}{f^2}}\,\sqrt {\mathrm {tan}\left (e+f\,x\right )+1}\right )\,\sqrt {\frac {-\frac {1}{2}-\frac {1}{2}{}\mathrm {i}}{f^2}}\,2{}\mathrm {i}-\mathrm {atan}\left (f\,\sqrt {\frac {-\frac {1}{2}+\frac {1}{2}{}\mathrm {i}}{f^2}}\,\sqrt {\mathrm {tan}\left (e+f\,x\right )+1}\right )\,\sqrt {\frac {-\frac {1}{2}+\frac {1}{2}{}\mathrm {i}}{f^2}}\,2{}\mathrm {i} \]
[In]
[Out]